import { _decorator, Component, Layers, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Util')
export class Util {
    static createSubNode(name: string, node: Node) {
        const subNode = new Node(name);
        node.addChild(subNode);
        subNode.layer = Layers.Enum.UI_2D;
        return subNode;
    }
}


